package com.supor.aiot.common.entity;

import java.io.Serializable;
import java.util.List;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2021, by het, ShenZhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 *     {
 *                 "softVersion": "1.00",
 *                 "note": null,
 *                 "salsModelName": null,
 *                 "modelId": "EPC",
 *                 "likeCount": 0,
 *                 "remark": null,
 *                 "modelPicture": "https://iot-video.supor
 *                 .com/image/cover/F1BFC98EBE8D4679A955E496498F95CF-6-2.png",
 *                 "shareCount": 0,
 *                 "providerId": "0",
 *                 "parameter": null,
 *                 "minuteParameter": null,
 *                 "networkType": null,
 *                 "modelTypeId": "EPC",
 *                 "upMarketDate": null,
 *                 "modelStatus": "0",
 *                 "modelTypeName": "主厨料理机",
 *                 "modelParentid": "0",
 *                 "supportFunctions": null,
 *                 "crmModelName": null,
 *                 "modelName": "EPC",
 *                 "replyCount": 0,
 *                 "screensPixel": "",
 *                 "createTime": "2020-10-30 11:00:00",
 *                 "brandId": "SUPOR",
 *                 "lastUpdate": "2021-08-04 17:02:22",
 *                 "isDel": 0,
 *                 "favoriteCount": 0,
 *                 "lookCount": 0,
 *                 "Children": [
 *                     {
 *                         "modelId": "SY-50MT01",
 *                         "providerId": "0",
 *                         "brandId": "SUPOR",
 *                         "modelTypeId": "EPC",
 *                         "modelTypeName": "主厨料理机",
 *                         "modelName": "SY-50MT01",
 *                         "salsModelName": null,
 *                         "crmModelName": null,
 *                         "supportFunctions": null,
 *                         "modelParentid": "EPC",
 *                         "upMarketDate": null,
 *                         "parameter": null,
 *                         "minuteParameter": null,
 *                         "modelPicture": null,
 *                         "softVersion": "1.00",
 *                         "likeCount": 0,
 *                         "lookCount": 0,
 *                         "replyCount": 0,
 *                         "shareCount": 0,
 *                         "favoriteCount": 0,
 *                         "modelStatus": "0",
 *                         "networkType": null,
 *                         "screensPixel": "",
 *                         "createTime": "2020-10-30 11:00:00",
 *                         "lastUpdate": "2021-01-07 12:23:48",
 *                         "isDel": 0,
 *                         "note": null,
 *                         "remark": null
 *                     }
 *                 ],
 *             }
 * 描述: 产品品类 <br>
 * 作者: lei <br>
 * 日期: 2021/9/2 <br>
 */
public class ProductType implements Serializable {
    /** 软件版本*/
    public String softVersion;
    /** 型号编号*/
    public String modelId;
    /** 型号名称*/
    public String modelName;
    /** 销售型号*/
    public String salsModelName;
    /** 型号图片*/
    public String modelPicture;
    /** 运营商编号*/
    public String providerId;
    /** 简单参数*/
    public String parameter;
    /** 详细参数*/
    public String minuteParameter;
    /** 联网方式*/
    public String networkType;
    /** 家电类型编号*/
    public String modelTypeId;
    /** 家电类型名称*/
    public String modelTypeName;
    /** 上市时间*/
    public String upMarketDate;
    /** 型号状态*/
    public String modelStatus;
    /** 父型号*/
    public String modelParentid;
    /** 支持功能*/
    public String supportFunctions;
    /** 售后型号*/
    public String crmModelName;
    /** 带屏分辨率*/
    public String screensPixel;
    /** 品牌编号*/
    public String brandId;
    /** 分享次数*/
    public int shareCount;
    /** 论评次数*/
    public int replyCount;
    /** 藏收次数*/
    public int favoriteCount;
    /** 访问次数*/
    public int lookCount;
    /** 点赞次数*/
    public int likeCount;
    public String createTime;
    public String lastUpdate;
    public int isDel;
    public String note;
    public String remark;
    public boolean selected;
    public boolean isExpand;
    public List<ProductModel> Children;

    public ProductType() {

    }

    public ProductType(String modelTypeName, String modelTypeId, String modelId, int id) {
        this.modelTypeName = modelTypeName;
        this.modelTypeId = modelTypeId;
        this.modelId = modelId;
        this.likeCount = id;
    }

    /**
     * 产品型号
     */
    public static class ProductModel implements Serializable {
        /**
         * 产品ID，AIoT产品中心分配, 4字节
         */
        public String productId = "";
        /** 型号编号*/
        public String modelId;
        /** 运营商编号*/
        public String providerId;
        /** 品牌编号*/
        public String brandId;
        /** 家电类型编号 EPC*/
        public String modelTypeId;
        /** 家电类型名称 主厨料理机*/
        public String modelTypeName;
        /** 型号名称 SY-50MT01*/
        public String modelName;
        /** 销售型号*/
        public String salsModelName;
        /** 售后型号*/
        public String crmModelName;
        /** 支持功能*/
        public String supportFunctions;
        /** 父型号*/
        public String modelParentid;
        /** 上市时间*/
        public String upMarketDate;
        /** 简单参数*/
        public String parameter;
        /** 详细参数*/
        public String minuteParameter;
        /** 型号图片*/
        public String modelPicture;
        /** 软件版本*/
        public String softVersion;
        /** 分享次数*/
        public int shareCount;
        /** 论评次数*/
        public int replyCount;
        /** 藏收次数*/
        public int favoriteCount;
        /** 访问次数*/
        public int lookCount;
        /** 点赞次数*/
        public int likeCount;
        /** 型号状态*/
        public String modelStatus;
        /** 联网方式*/
        public String networkType;
        /** 带屏分辨率*/
        public String screensPixel;
        public String createTime;
        public String lastUpdate;
        public int isDel;
        public String note;
        public String remark;
        /**
         * 针对寻味下型号列表，表示用户是否绑定了此型号的设备
         */
        public boolean bindStatus;
        public boolean selected;
    }
}
